﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace ChuanYe.WorkLogManagement.EF.SqlServer
{
    [Table("UserInfo")]
    public class UserInfo
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int UserID { get; set; }

        [Required]
        [StringLength(100)]
        public string AccountName { get; set; }

        [Required]
        [StringLength(100)]
        public string Password { get; set; }

        [StringLength(100)]
        public string RealName { get; set; }

        [StringLength(100)]
        public string MobilePhone { get; set; }

        [Required]
        public bool IsManager { get; set; }

        public int? DepartmentID { get; set; }

        public int? PositionID { get; set; }

    }
}
